<!DOCTYPE html>
<html>
	<head>
		<link rel="icon" href="{site}/favicon.ico" type="image/x-icon">
		<link rel="shortcut icon" href="{site}/favicon.ico" type="image/x-icon">
		<link rel="bookmark" href="{site}/favicon.ico" type="image/x-icon">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
		<meta name="format-detection" content="telephone=no"/>
		<link rel="stylesheet" type="text/css" href="{site}/Public/Css/mobile/public.css">
		<link rel="stylesheet" type="text/css" href="{site}/Public/Css/mobile/categorylist.css">
		<link rel="stylesheet" type="text/css" href="{site}/Public/Css/mobile/custom.css">
		<link rel="stylesheet" type="text/css" href="{site}/Public/Css/bootstrap.min.css">
		<style>.notification-box {width:100%;margin:0 auto;border-top: 2px solid #ffe599;border-bottom: 2px solid #ffe599;background: #ffffbf url({site}/Public/images/ico-exc.png) 10px 9px no-repeat;
overflow: hidden;padding: 6px 0px 6px 0px;font-size: 13px;line-height: 18px;color: #949494;text-shadow: 1px 1px 0 #fff;text-align: center;margin-bottom:6px;}</style>
		<title>{f->szone} - {site_config->site_title_mobile}</title>
		<script>document.onreadystatechange = function(){
    if (document.readyState == "complete"){
    	var urls = window.location.href;
var url_array = urls.split("=");
var page = url_array[1];
if (page != undefined){
	var uclass = document.getElementsByTagName("a");
  for(var n=0;n<uclass.length;n++){
  	if((uclass[n].className=='fy'+page) && (uclass[n].className != undefined)){
      uclass[n].style.background = "#1c7bc5";
      uclass[n].style.color = "#fff";
    }
	}
}}}</script>
	</head>
	<body>
	<!--头部开始-->
		<header>
			<div class="top_head white" style="font: normal 18px/1.5 helvetica, verdana, san-serif;">
	    <div class="box1">
	        <a href="javascript:history.go(-1);" class="back"></a>
	    </div>
	    <div class="box2">
	        <a href="{site}">{site_config->site_title_mobile}</a></div>
	    <div class="box3">
	        	<?php if(empty($_SESSION['youyax_user'])){	?>
	            <a  href="__APP__/Login{url}loginMobile{shtml}"><span class="header_user">用户登录</span></a>
	          <?php	}else{	?>
	          <a href="__APP__/List{url}fatie{shtml}" class="msg"><span class="header_user">发帖</span></a>
	        <?php	}	?>
	    </div>
			</div>
		</header>
	<!--头部结束-->	
	<section class="mark">
		<div style="font-size:14px;">今日: <span style="color:#ca4312;">{today}</span> <span style="color:#b3b3b3;">|</span> 主题: <span style="color:#ca4312;">{tiezi}</span></div>
		<div style="text-align: left;font-size:12px;color:#666;">{f->mark}</div>
	</section>
	<!--子版块开始-->
		<?php
		if(!empty($this->array_two['data_block_child'])){
		?>	
		<section class="here">
			子版块
		</section>
		<ul class="list_1">
		<?php
		 foreach($this->array_two['data_block_child'] as $v){
		?>		
					<li>
						<ul><li>
							<a href="__APP__/List{url}<?php echo $v['id']; ?>{shtml}"><?php echo $v['szone'];?><?php if($this->array['today_child'.$v['id']]!=0) echo "<span style='color:#f60;margin-left:10px;'>(".$this->array['today_child'.$v['id']].")</span>";?></a>
						</li></ul>
					</li>
		<?php	 }	?></ul>
		<?php } ?>
	<!--子版块结束-->
	<?php	if (!CommonAction::userGroupVisit('publish') || !CommonAction::userGroupVisit('reply') || !CommonAction::userGroupVisit('mark')) { ?>
    <div class="notification-box">您所在的用户组权限 : 
    	<?php
    		if (!CommonAction::userGroupVisit('publish')){echo "发帖 : <span style='color:red'>×</span> , ";}else{echo "发帖 : <span style='color:green'>√</span> , ";}
    		if (!CommonAction::userGroupVisit('reply')){echo "回帖 : <span style='color:red'>×</span> , ";}else{echo "回帖 : <span style='color:green'>√</span> , ";}
    		if (!CommonAction::userGroupVisit('mark')){echo "点评 : <span style='color:red'>×</span> ";}else{echo "点评 : <span style='color:green'>√</span> ";}
    	?>
    </div>
	<?php	}	?>
	<ul class="nav nav-tabs" style="margin:10px 0;font-size:16px;">
	  <li <?php if($this->getparam("type")==null){echo 'class="active"';} ?>><a href="__APP__/List{url}<?php echo $_SESSION['youyax_f']; ?>{shtml}" data-toggle="tab">所有帖子</a></li>
	  <li <?php if($this->getparam("type")==1){echo 'class="active"';} ?>><a href="__APP__/List{url}<?php echo $_SESSION['youyax_f']; ?>{url}type{url}1{shtml}" data-toggle="tab">论坛帖子</a></li>
	  <li <?php if($this->getparam("type")==2){echo 'class="active"';} ?>><a href="__APP__/List{url}<?php echo $_SESSION['youyax_f']; ?>{url}type{url}2{shtml}" data-toggle="tab">问答帖子</a></li>
	</ul>
	<!--版块开始-->
	<section class="posts_list">
		<ul class="listBg">
   <?php
		if(!empty($this->array_two['zd_data'])){
			foreach($this->array_two['zd_data'] as $v){
	 ?>
   	<li>
   		<a href="__APP__/Content{url}<?php echo $v['id'];?>{shtml}">
   			<p><?php echo stripslashes($v['title']);?>
   			   			<?php	if($v['lock_status']==1){	?>
<span class="btn-mark-orange">锁定</span>
<?php	}if($v['is_grap']==1){	?>
<span class="icon-abstract-front">精华</span>
<?php	}if(!empty($v['is_allow'])){	?>
<span class="btn-mark-groupchat">群组</span>
<?php	}if($v['is_visible']==1){	?>
<span class="icon-abstract-front2">隐藏</span>
<?php	}if($v['is_limit1']==1){	?>
<span class="icon-abstract-front3">限1</span>
<?php	}if($v['is_question']==1){	?>
<span class="btn-mark-green" title="提问帖子">金币: <?php echo $v['question_bid']; ?></span>
<?php	}if(!empty($v['tags'])){
		$tag_sk_lists = explode(",", $v['tags']);
            foreach ($tag_sk_lists as $n) {	?>
            	<a href="__APP__/Search{url}query{shtml}?q=<?php echo urlencode($n); ?>&action=tags"><span class="btn-mark-tags" title="标签:<?php echo $n; ?>"><?php echo $n; ?></span></a>
     <?php  }}	?>	
   			</p>
   			<aside>
          <span><em class="hui">楼主：</em><?php echo $v['zuozhe']; ?></span>
	<?php 
	if(floor($v['num1']/1000)>=10 && floor($v['num1']/1000)<90){
		$v['num1']=floor($v['num1']/10000) . "万+";
	}if(floor($v['num1']/1000)>=90){
		$v['num1']="9万+";
	}
				if($v['num2']!=0){
					if(floor($v['num2']/1000)>=10 && floor($v['num2']/1000)<90){
						$v['num2']=floor($v['num2']/10000) . "万+";
					}if(floor($v['num2']/1000)>=90){
						$v['num2']="9万+";
					}
						echo '<span><em class="hui">回复：</em>'.$v['num2'].'</span>';
						echo '<span><em class="hui">点击：</em>'.$v['num1'].'</span>';
					}else{
						echo '<span><em class="hui">回复：</em>0</span>';
						echo '<span><em class="hui">点击：</em>'.$v['num1'].'</span>';
						}
		?>          
        </aside>
   		</a>	
   	</li>
   	<?php	}}?>
 		</ul>
 	</section>
 	<section class="posts_list">
 	<nav style="background:#1c7bc5;padding:5px 0px 5px 10px;"><a style="color:#fff;font-size:16px;">主题列表</a></nav>
   <ul class="listBg">
   <?php
		if(!empty($this->array_two['data'])){				
			foreach($this->array_two['data'] as $v){
	 ?>
   	<li>
   		<a href="__APP__/Content{url}<?php echo $v['id'];?>{shtml}">
   			<p><?php echo stripslashes($v['title']);?>
   			<?php	if($v['lock_status']==1){	?>
<span class="btn-mark-orange">锁定</span>
<?php	}if($v['is_grap']==1){	?>
<span class="icon-abstract-front">精华</span>
<?php	}if(!empty($v['is_allow'])){	?>
<span class="btn-mark-groupchat">群组</span>
<?php	}if($v['is_visible']==1){	?>
<span class="icon-abstract-front2">隐藏</span>
<?php	}if($v['is_limit1']==1){	?>
<span class="icon-abstract-front3">限1</span>
<?php	}if($v['is_question']==1){	?>
<span class="btn-mark-green" title="提问帖子">金币: <?php echo $v['question_bid']; ?></span>
<?php	}if(!empty($v['tags'])){
		$tag_sk_lists = explode(",", $v['tags']);
            foreach ($tag_sk_lists as $n) {	?>
            	<a href="__APP__/Search{url}query{shtml}?q=<?php echo urlencode($n); ?>&action=tags"><span class="btn-mark-tags" title="标签:<?php echo $n; ?>"><?php echo $n; ?></span></a>
     <?php  }}	?>	
   			</p>
   			<aside>
          <span><em class="hui">楼主：</em><?php echo $v['zuozhe']; ?></span>
	<?php 
	if(floor($v['num1']/1000)>=10 && floor($v['num1']/1000)<90){
		$v['num1']=floor($v['num1']/10000) . "万+";
	}if(floor($v['num1']/1000)>=90){
		$v['num1']="9万+";
	}
				if($v['num2']!=0){
					if(floor($v['num2']/1000)>=10 && floor($v['num2']/1000)<90){
						$v['num2']=floor($v['num2']/10000) . "万+";
					}if(floor($v['num2']/1000)>=90){
						$v['num2']="9万+";
					}
						echo '<span><em class="hui">回复：</em>'.$v['num2'].'</span>';
						echo '<span><em class="hui">点击：</em>'.$v['num1'].'</span>';
					}else{
						echo '<span><em class="hui">回复：</em>0</span>';
						echo '<span><em class="hui">点击：</em>'.$v['num1'].'</span>';
						}
		?>          
        </aside>
   		</a>	
   	</li>
   	<?php	}}?>
 		</ul>
 		<div class="page" align="center">{page}</div>
  </section>
	<!--版块结束-->	
	<include file="Tpl/mobile/Public/navbar.html">
	<!--版权开始-->
	<footer class="fmnav-footer">
		<div class="copyright">
   		<a>Powered BY YouYaX</a>
  	</div>
	</footer>
	<!--版权结束-->
	</body>
</html>